package com.bagus.mediapipefacedetection.utils;

import android.content.Context;

public class ResourceHelper {
    private static ResourceHelper mResource = null;
	private static String mPackagename = null;

	private Context mContext;

	public static ResourceHelper getInstance(Context context) {
		if (mResource == null) {
			mPackagename = (mPackagename == null ? context.getPackageName()
					: mPackagename);
			mResource = new ResourceHelper(mPackagename, context);
		}
		return mResource;
	}

	private ResourceHelper(String packageName, Context context) {
		this.mContext = context.getApplicationContext();
	}

	public int getRawId(String resourceName){
		return mContext.getResources().getIdentifier(resourceName,"raw",mPackagename);

	}

}